using Newtonsoft.Json;

namespace CkSoftware.GroupMe.Sdk.Core.Dao
{
	/// <summary>
	/// GroupMe ImagingService picture data offering multiple image-sizes.
	/// </summary>
	public class PictureData
	{
		/// <summary>
		/// The url of the avatar-sized image version.
		/// </summary>
		[JsonIgnore]
		public string AvatarUrl
		{
			get { return string.Concat(Url, ".avatar"); }
		}

		/// <summary>
		/// The url of the large-sized image version.
		/// </summary>
		[JsonIgnore]
		public string LargeUrl
		{
			get { return string.Concat(Url, ".large"); }
		}

		/// <summary>
		/// The url of the preview-image sized image version.
		/// </summary>
		[JsonIgnore]
		public string PreviewUrl
		{
			get { return string.Concat(Url, ".preview"); }
		}

		/// <summary>
		/// The url of the original image version.
		/// </summary>
		[JsonProperty(PropertyName = "url")]
		public string Url { get; set; }
	}
}